package com.webbei.HAO.action;

import java.util.List;
import net.sf.json.JSONArray;
import com.opensymphony.xwork2.ActionSupport;
import com.webbei.HAO.service.ChSer;
import com.webbei.pojo.Carseries;

public class SecTree extends ActionSupport {
	private ChSer ser;
	private String id;
	private List<Carseries> seclist;
	private JSONArray jsonob;

	public String execute() {
		
		Integer uid = Integer.parseInt(id);
		seclist = ser.carlist(uid);
		jsonob = JSONArray.fromObject(seclist);
		return SUCCESS;

	}

	public void setId(String id) {
		this.id = id;
	}

	public JSONArray getJsonob() {
		return jsonob;
	}

	public void setSer(ChSer ser) {
		this.ser = ser;
	}

}
